import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'news',
      component: () => import('./views/News.vue')
    },
    {
      path: '/news',
      name: 'news',
      component: () => import('./views/News.vue')
    },
    {
      path: '/articles',
      name: 'articles',
      component: () => import( './views/Articles.vue')
    },
    {
      path: '/pictures',
      name: 'pictures',
      component: () => import( './views/Pictures.vue')
    },
    {
      path: '/movies',
      name: 'movies',
      component: () => import( './views/Movies.vue')
    },
    {
      path: '/loging',
      name: 'loging',
      component: () => import( './views/Loging.vue')
    },
    {
      path: '/register',
      name: 'register',
      component: () => import( './views/Register.vue')
    },
    {
      path: '/statistics',
      name: 'statistics',
      component: () => import( './views/Statistics.vue')
    },
    {
      path: '/users',
      name: 'users',
      component: () => import( './views/Users.vue')
    }
  ],
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})
